/* Global Resets and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Header Styles */
.app-header {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container svg {
  color: #8b5cf6;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  margin-left: 0.5rem;
}

.nav-links a {
  color: #475569;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #8b5cf6;
}

.nav-links .nav-cta {
  background-color: #1e293b;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.nav-links .nav-cta:hover {
  background-color: #0f172a;
  color: white;
}

.mobile-menu-button {
  display: none;
}

/* Hero Section */
.hero-section {
  position: relative;
  text-align: center;
  padding: 5rem 1.5rem;
  overflow: hidden;
}
.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #67e8f9, #a78bfa);
  opacity: 0.2;
  z-index: -1;
}
.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.125rem;
  color: #334155;
  max-width: 48rem;
  margin: 0 auto 2rem;
}
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1.125rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.btn-primary {
  background-color: #8b5cf6;
  color: white;
}
.btn-primary:hover {
  background-color: #7c3aed;
  transform: scale(1.05);
}
.btn-secondary {
  background-color: white;
  color: #334155;
  border: 1px solid #e2e8f0;
}
.btn-secondary:hover {
  background-color: #f8fafc;
}
.hero-image {
  margin-top: 4rem;
  margin-left: auto;
  margin-right: auto;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  width: 100%;
  max-width: 42rem;
}

/* General Section Styling */
.section {
  padding: 5rem 0;
}
.section-bg-white {
  background-color: white;
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: #1e293b;
  margin-bottom: 0.5rem;
}
.section-subtitle {
  text-align: center;
  color: #64748b;
  max-width: 42rem;
  margin: 0 auto 3rem;
}

/* Features Section */
.features-grid {
  display: grid;
  gap: 2rem;
}
.feature-card {
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px 1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  transition: box-shadow 0.3s ease;
}
.feature-card:hover {
  box-shadow: 0 4px 15px 2px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.feature-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
}
.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
}
.feature-description {
  color: #64748b;
}
.icon-bg-cyan { background-color: #ecfeff; }
.icon-bg-cyan svg { color: #0891b2; }
.icon-bg-violet { background-color: #f5f3ff; }
.icon-bg-violet svg { color: #7c3aed; }
.icon-bg-emerald { background-color: #ecfdf5; }
.icon-bg-emerald svg { color: #059669; }
.icon-bg-rose { background-color: #fff1f2; }
.icon-bg-rose svg { color: #e11d48; }
.icon-bg-amber { background-color: #fffbeb; }
.icon-bg-amber svg { color: #d97706; }
.icon-bg-sky { background-color: #f0f9ff; }
.icon-bg-sky svg { color: #0284c7; }

/* How It Works Section */
.how-it-works-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-icon-wrapper {
  background-color: white;
  height: 6rem;
  width: 6rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border-width: 2px;
}
.step-icon-wrapper.border-cyan { border-color: #a5f3fc; }
.step-icon-wrapper.border-cyan svg { color: #22d3ee; }
.step-icon-wrapper.border-violet { border-color: #ddd6fe; }
.step-icon-wrapper.border-violet svg { color: #a78bfa; }
.step-icon-wrapper.border-emerald { border-color: #a7f3d0; }
.step-icon-wrapper.border-emerald svg { color: #34d399; }

.step-title {
  margin-top: 1rem;
  font-weight: 600;
}
.flow-arrow {
  color: #cbd5e1;
  transform: rotate(90deg);
}

/* Hardware Section */
.hardware-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.hardware-image {
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}
.hardware-details .section-title-sub {
  font-size: 1.875rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.hardware-details .description {
  color: #64748b;
  margin-bottom: 1.5rem;
}
.hardware-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.hardware-list-item {
  display: flex;
  align-items: flex-start;
}
.hardware-list-item svg {
  color: #8b5cf6;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}
.list-item-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: #334155;
}
.list-item-description {
  color: #64748b;
}

/* CTA Section */
.cta-section {
  text-align: center;
}
.cta-title {
  font-size: 1.875rem;
  font-weight: 700;
}
.cta-description {
  color: #64748b;
  margin: 1.5rem auto;
  max-width: 42rem;
}
.btn-cta-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: #1e293b;
  color: white;
  font-size: 1.25rem;
  padding: 1rem 2rem;
}
.btn-cta-github:hover {
  background-color: #0f172a;
  transform: scale(1.05);
}

/* Footer Styles */
.app-footer {
  background-color: #1e293b;
  color: #cbd5e1;
  padding: 3rem 0;
  text-align: center;
}
.footer-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: white;
}
.footer-subtitle {
  margin-top: 0.5rem;
  font-size: 0.875rem;
}
.footer-copy {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #64748b;
}

/* Responsive Styles */
@media (min-width: 768px) {
  /* Header */
  .nav-links {
      display: flex;
      align-items: center;
      gap: 1.5rem;
  }
  .mobile-menu-button {
      display: none;
  }
  
  /* Hero */
  .hero-section {
      padding: 8rem 1.5rem;
  }
  .hero-title {
      font-size: 4rem;
  }
  .hero-subtitle {
      font-size: 1.25rem;
  }

  /* Features */
  .features-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  /* How it works */
  .how-it-works-flow {
      flex-direction: row;
      justify-content: center;
  }
  .flow-arrow {
      transform: rotate(0);
  }
  
  /* Hardware */
  .hardware-content {
      flex-direction: row;
      gap: 3rem;
  }
  .hardware-image-wrapper {
      width: 50%;
  }
  .hardware-details {
      width: 50%;
  }

  /* CTA */
  .cta-title {
      font-size: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .features-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
